package com.kingbi.system.people.jsfBean;

import java.util.Date;



import com.kingbi.util.jsf.ListPageBean;
import com.kingbi.system.people.model.PeopleModel;

public class PeopleDataBean extends ListPageBean {

	private String roleCheckbox=""; 
	private String userId="";
	private String UXid="";
	private String ssoId="";
	private String userName="";
	private String password="";
	private String userType="";
	private String roleId="";
	private String isShare="";
	private String phone="";
	private String mobile="";
	private String email="";
	private String remark="";
	private String valid="";
	 /*
      *分行名称
      */
 	private String bankName;
 	/*
     *分行编码
     */
	private Long BId=null;
	
	private String queryName ="";
    private String queryMobile ="";
	
	//所属角色
	private String roleName="";
	/**
     * 是否为修改
     */
    private String isEdit = "";

	 public PeopleModel getJsfModel()
	    {
		    PeopleModel peopleModel=new PeopleModel();
		    peopleModel.setUserId(this.userId) ;
		    peopleModel.setUserName(this.userName) ;
		    peopleModel.setPassword(this.password) ;
		    peopleModel.setPhone(this.phone);
		    peopleModel.setMobile(this.mobile);
		    peopleModel.setEmail(this.email) ;
		    peopleModel.setRemark(this.remark) ;
		    peopleModel.setValid(this.valid);
	        return peopleModel;
	    }
	 
	 public PeopleModel getModelData(PeopleDataBean bean)
	    {
		    PeopleModel peopleModel=new PeopleModel();
		    peopleModel.setUserId(bean.userId) ;
		    peopleModel.setUserName(bean.userName) ;
		    peopleModel.setPassword(bean.password) ;
		    peopleModel.setPhone(bean.phone);
		    peopleModel.setMobile(bean.mobile);
		    peopleModel.setEmail(bean.email) ;
		    peopleModel.setRemark(bean.remark) ;
		    peopleModel.setValid(bean.valid);
	        return peopleModel;
	    }

	    public void getJsfDataBean(PeopleModel theModel)
	    {
	        this.setUserId(theModel.getUserId()) ;
	        this.setUserName(theModel.getUserName()) ;
            this.setPassword(theModel.getPassword());
            this.setPhone(theModel.getPhone());
	        this.setMobile(theModel.getMobile());
	        this.setEmail(theModel.getEmail());
	        this.setRemark(theModel.getRemark()) ;
	        this.setRoleName(theModel.getRoleName());
	        this.setValid(theModel.getValid());
	        this.setbankName(theModel.getBankName());
	    }
	    
	    public void getJsfDataBean(PeopleDataBean theModel)
	    {
	        this.setUserId(theModel.getUserId()) ;
	        this.setUserName(theModel.getUserName()) ;
            this.setPassword(theModel.getPassword());
            this.setRoleId(theModel.getRoleId());
            this.setPhone(theModel.getPhone());
	        this.setMobile(theModel.getMobile());
	        this.setEmail(theModel.getEmail());
	        this.setRemark(theModel.getRemark()) ;
	        this.setRoleName(theModel.getRoleName());
	        this.setValid(theModel.getValid());
	        this.setBId(theModel.getBId());
	        this.setbankName(theModel.getbankName());
	    }
	    
	    public PeopleDataBean getDataBean(PeopleModel theModel)
	    {
	    	PeopleDataBean bean = new PeopleDataBean();
	    	bean.setUserId(theModel.getUserId()) ;
	    	bean.setUserName(theModel.getUserName()) ;
	    	bean.setPassword(theModel.getPassword());
	    	bean.setPhone(theModel.getPhone());
	    	bean.setMobile(theModel.getMobile());
	    	bean.setEmail(theModel.getEmail());
	    	bean.setRemark(theModel.getRemark()) ;
	    	bean.setRoleName(theModel.getRoleName());
	    	bean.setValid(theModel.getValid());
	    	bean.setbankName(theModel.getBankName());
	    	return bean;
	    }

	    public void getEmptyJsfBean(  )    {
	        this.setUserId("");
	        this.setUserName("");
	        this.setPassword("");
	        this.setRoleId("");
	        this.setPhone("");
	        this.setMobile("");
	        this.setEmail("");
	        this.setRemark("");
	        this.setRoleName("");
	        this.setValid("");
	        this.setBId(null);
	        this.setbankName("");
	        
	    }

	public String getRoleCheckbox() {
		return roleCheckbox;
	}
	public void setRoleCheckbox(String roleCheckbox) {
		this.roleCheckbox = roleCheckbox;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUXid() {
		return UXid;
	}
	public void setUXid(String xid) {
		UXid = xid;
	}
	public String getSsoId() {
		return ssoId;
	}
	public void setSsoId(String ssoId) {
		this.ssoId = ssoId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	} 
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public String getIsShare() {
		return isShare;
	}
	public void setIsShare(String isShare) {
		this.isShare = isShare;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getValid() {
		return valid;
	}
	public void setValid(String valid) {
		this.valid = valid;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getIsEdit() {
		return isEdit;
	}

	public void setIsEdit(String isEdit) {
		this.isEdit = isEdit;
	}

	public String getQueryName() {
		return queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}

	public String getQueryMobile() {
		return queryMobile;
	}

	public void setQueryMobile(String queryMobile) {
		this.queryMobile = queryMobile;
	}

	public Long getBId() {
		return BId;
	}

	public void setBId(Long id) {
		BId = id;
	}

	public String getbankName() {
		return bankName;
	}

	public void setbankName(String bankName) {
		this.bankName = bankName;
	}


}
